// main.js（调整引入顺序）
import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import request from './axios/request'
import ElementUI from 'element-ui'
import store from './vuex/store'
import 'element-ui/lib/theme-chalk/index.css'  // 先引入 Element UI 样式
import 'bootstrap/dist/css/bootstrap.css'     // 后引入 Bootstrap
import 'bootstrap/dist/js/bootstrap.js'
import 'font-awesome/css/font-awesome.css'

Vue.use(ElementUI)
Vue.prototype.$request = request
Vue.config.errorHandler = (err, vm, info) => {
    console.error('全局错误捕获:', err, info);
};
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')